package com.yuanfeng.userms.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.commoms.util.querypage.PageUtils;
import com.yuanfeng.commoms.util.querypage.Query;
import com.yuanfeng.userms.entity.UserDistributorApplyEntity;
import com.yuanfeng.userms.mapper.UserDistributorApplyMapper;
import com.yuanfeng.userms.service.UserDistributorApplyService;
import com.yuanfeng.userms.vo.SelfAllianceApplyListVO;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 *
 */
@Service
public class UserDistributorApplyServiceImpl extends ServiceImpl<UserDistributorApplyMapper, UserDistributorApplyEntity>
    implements UserDistributorApplyService{

    @Override
    public ResponseResult queryApplyList(Map<String, Object> param) {
        IPage<SelfAllianceApplyListVO> page=this.baseMapper.queryApplyList(new Query<SelfAllianceApplyListVO>().getPage(param),
                param);

        return ResponseResult.success(PageUtils.getPage(page));

    }
}




